package com.baosight.risk.web.xtri;

import com.baosight.risk.api.riri.IRiriRiskService;
import com.baosight.risk.api.xtri.IXtriTempSystemService;
import com.baosight.risk.base.controller.BaseController;
import com.baosight.risk.common.annotation.Log;
import com.baosight.risk.common.enums.IntegralType;
import com.baosight.risk.common.result.AjaxResult;
import com.baosight.risk.service.riri.entity.RiriRisk;
import com.baosight.risk.service.riri.vo.RiriRiskVO;
import com.baosight.risk.service.xtri.entity.TXtriTempSystem;
import com.baosight.risk.service.xtri.vo.XtriTempSystemVO;
import com.baosight.risk.service.xtzy.entity.XtzyCompany;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Slf4j
@RestController
@RequestMapping("/xtri/tempSystem")
public class XtriTempSystemController extends BaseController {

    @Autowired
    private IXtriTempSystemService xtriTempSystemService;

    /**
     * 内控制度信息查询
     *
     * @param
     * @return
     */
    @RequestMapping("queryTempSystem")
    @ApiOperation("内控制度信息查询")
    @Log(integralType = IntegralType.Type2)
    public AjaxResult queryTempSystem(XtriTempSystemVO tempSystem) {
        log.info("内控制度信息查询");
        return getResultPage(xtriTempSystemService.queryTempSystem(tempSystem));
    }


}